<html>
<head>
    <title>{{ $title }}</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1, maximum-scale=1, viewport-fit=cover">
    <meta name="description" content="{{ $describe }}" />
    <link rel="shortcut icon" href="https://ttwls.oss-cn-beijing.aliyuncs.com/assets/images/admin/favicon.ico"/>
    <link rel="stylesheet" type="text/css" href="https://res.wx.qq.com/open/libs/weui/2.4.0/weui.min.css?v=202207071008">
    <link rel="stylesheet" type="text/css" href="https://ttwls.oss-cn-beijing.aliyuncs.com/v/v9/home_links.min.css?v=202207071008">
    <script src="https://wailiancn.oss-cn-beijing.aliyuncs.com/assets/js/v2/jquery-3.5.1-min.js?v=202207071008"></script>
    <script src="https://ttwls.oss-cn-beijing.aliyuncs.com/v/v6/wailianstatic.min.js"></script>
    <script src="/js/public/wailianstatic.min.js?v={{ time() }}"></script>
    <script src="https://wailiancn.oss-cn-beijing.aliyuncs.com/assets/js/libs/cryptojs/md5.js?versionId=CAEQIRiBgICR256j_xciIGE0MmE2NjAwY2RlYzQyODA4OGE5YzI4ZTVjNGNmYzA5"></script>
    <script src="https://wailiancn.oss-cn-beijing.aliyuncs.com/assets/js/libs/cryptojs/aes.js?versionId=CAEQIRiDgMCU3Z6j_xciIDk5MDAwODdkZmI2YzQyY2U5NDAyZmI2NWFkYWM2NzIx"></script>
    <script src="https://wailiancn.oss-cn-beijing.aliyuncs.com/assets/js/v2/qrcode.min.js?versionId=CAEQIRiBgICI8_PA_RciIDE1ZmZiMmM2NmIyODRmMDE4Mzg0NWM5YTY5OTE5MDI0"></script>
    <script src="https://wailiancn.oss-cn-beijing.aliyuncs.com/assets/js/v2/clipboard.min.js?versionId=CAEQHxiBgMCkp7iT5hciIGQ3ZmZkMWFlNWYxNDQ0Y2RhOWU3ZWUyOTU4NzhiMDRi"></script>
    <script src="https://ttwls.oss-cn-beijing.aliyuncs.com/v/v6/links-template-7.js?v=202207071008"></script>
</head>

<body>
    <input type="hidden" id="linksinfo" value="{{ $linksinfo }}">
    <div class="page full" id="main_content">
        <div id="public-web-container" class="public-container">
            <div id="safe-notice" style="display:none;">
                <div class="safe-notice">
                    <i class="weui-icon-safe-success"></i>
                    <p>本链接经过<font>SSL安全加密</font>,请放心点击!</p>
                </div>
            </div>
            <div id="style_normal" style="display:none;">
                <img class="logo" src="">
                <p class="notice-msg"><small>正在跳转到微信...</small><br>如未自动打开微信请点击下方按钮</p>
                <div class="button-container">
                    <a id="public-web-jump-button" href="" class="default" style="">
                        <span id="public-web-jump-button-loading" class="weui-primary-loading weui-primary-loading_transparent">
                            <i class="weui-primary-loading__dot"></i>
                        </span>
                        正在打开微信
                    </a>
                </div>
                <a id="dianjiimg_links" href="">
                </a>
                <div class="qrcodes-container" id="qrcodes"></div>
                <p class="copy-notice"><font></font><span id="copylink" data-clipboard-text="">复制链接</span></p>
            </div>
            <div id="style_full" style="display:none;">
                <a id="dianjiimg_links_full" href="">
                    <img class="fullimg" src="">
                </a>
                <div id="button_container_full" class="button-container-none">
                    <a id="public-web-jump-button-full" href="" style="">
                    </a>
                </div>
            </div>
        </div>
    </div>
    <div class="page" id="noticeError" style="display:none;">
        <div class="weui-msg">
            <div class="weui-msg__icon-area"><i class="weui-icon-info weui-icon_msg"></i></div>
            <div class="weui-msg__text-area">
                <h2 class="weui-msg__title">请在微信内打开</h2>
                <p class="weui-msg__desc"></p>
            </div>
            <div class="weui-msg__tips-area">
              <p class="weui-msg__tips" style="font-size:14px;">如果链接无法打开微信并展示公众号，请复制链接使用手机微信打开。</p>
            </div>
            <div class="weui-msg__opr-area">
                <p class="weui-btn-area">
                    <span id="errorcopylink" data-clipboard-text="" class="weui-btn weui-btn_primary">复制链接</span>
                </p>
            </div>
            <div class="weui-msg__extra-area">
                <div class="weui-footer">
                    <p class="weui-footer__text">Copyright &copy; 2018-2022 <a href="https://nilife.cn" style="color: var(--weui-FG-2);">nilife.cn</a></p>
                </div>
            </div>
        </div>
    </div>

    <!--BEGIN dialog-->
    <div class="js_dialog" role="dialog"  aria-hidden="true" aria-modal="true" aria-labelledby="js_title2" id="dialog" style="display: none;">
        <div class="weui-mask"></div>
        <div class="weui-dialog">
            <div class="weui-dialog__bd">已复制，将链接发送给微信 "文件传输助手" 后即可点击打开！</div>
            <div class="weui-dialog__ft">
                <span class="weui-dialog__btn weui-dialog__btn_primary" onclick="hideDialog();">知道了</span>
            </div>
        </div>
    </div>
    <!--END dialog-->
    <script type="text/javascript">
        $(document).ready(function() {
            try {
                getLinksDetial();
            } catch(error){
                errorReport(error)
            }
            var copylink = new ClipboardJS("#copylink");
            copylink.on('success', function(e) {
                showDialog();
            });
            var copylink = new ClipboardJS("#errorcopylink");
            copylink.on('success', function(e) {
                showDialog();
            });
        });
    </script>
</body>

</html>
